package Mangos::DB::Characters::GuildBankItem;

use strict;

use base qw(Mangos::DB::Characters);

__PACKAGE__->meta->setup
(
    table   => 'guild_bank_item',

    columns => 
    [
        guildid    => { type => 'integer', not_null => 1 },
        TabId      => { type => 'integer', not_null => 1 },
        SlotId     => { type => 'integer', not_null => 1 },
        item_guid  => { type => 'integer', default => '0', not_null => 1 },
        item_entry => { type => 'integer', default => '0', not_null => 1 },
    ],

    primary_key_columns => [ 'guildid', 'TabId', 'SlotId' ],
);

1;

package Mangos::DB::Characters::GuildBankItem::Manager;

use strict;
use warnings;

use base 'Rose::DB::Object::Manager';

sub object_class { 'Mangos::DB::Characters::GuildBankItem' }

__PACKAGE__->make_manager_methods('guild_bank_item');

1;
